package bsserver.response;

import bsserver.Request;

/**
 * Response class for handling Responses which are required to have no message
 * body
 * @author tblackstone
 */
public class BodylessResponse extends Response {

    /**
     * Creates a new Response guaranteed to have no message body
     * @param r the Request which caused this Response to be generated
     * @param status the status code to return to the client
     */
    public BodylessResponse(Request r, int status) {
        super(r);

        setDefaultHeaders();
        setStatus(status);
    }
}
